package com.tust.app.service;


import com.tust.app.domain.Answer;

import java.util.List;

public interface AnswerService {

    Answer getAnswerById(Integer id);

    public List<Answer> getAllAnswers();

    void addAnswer(Answer answer);

    void updateAnswer(Answer answer);

    boolean deleteAnswer(Integer id);

    List<Answer> getAnswersByState(Integer state2);
}